/**
 * 区域api接口
 * @author 方礼爱
 * @version 1.0.0
 */
import request from '@/utils/request'

/**
 * 获取所有的区域信息
 */
export const getAreas = () => {
  return request.fetchPost('/admin/area/list', {})
}

/**
 * 删除区域信息
 * @param {区域ID} templId
 */
export const delArea = (areaId) => {
  return request.fetchPost('/admin/area/del' + areaId, {})
}
/**
 * 添加及修改
 * @param {区域} template
 */
export const editArea = (area) => {
  return request.fetchPost('/admin/area/edit', area)
}
